﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace Qiang.Styles
{
    public abstract class LineStyle : Style,ILineStyle
    {



        #region 属性

        /// <summary>
        /// 样式类型。
        /// </summary>
        public abstract LineStyleType StyleType { get; }

        #endregion



        #region 方法

        /// <summary>
        /// 绘制。
        /// </summary>
        /// <param name="g"></param>
        /// <param name="path"></param>
        public virtual void DrawPath(Graphics g, GraphicsPath path)
        { 
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public virtual Pen ToPen()
        {
            return null;
        }

        #endregion


    }
}
